package com.apache.publish.controller;

import com.apache.publish.service.PublishService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * 控制层
 */
@RestController
public class PublishController {

    @Autowired
    PublishService publishService;

    @GetMapping("dauRealtime")
    public Map<String, Object> dauRealtime(@RequestParam("td") String td) {

        Map<String, Object> results = publishService.doDauRealtime(td);
        return results;
    }
}
